package com.jili.factory.pizza;

/**
 * ClassName: BJFactory
 * Package com.jili.factory.pizza
 * Description:
 *
 * @Author: 廖继礼
 * @Create: 2024/7/31
 * @Version: v1.0
 */
public class BJFactory implements AbsFactory{
    @Override
    public Pizza createPizza(String type) {
        Pizza pizza = null;
        if (type.equals("cheese")){
            pizza = new BJCheesePizza("北京cheese");
        }else if (type.equals("greek")){
            pizza = new BJGreekPizza("北京greekPizza");
        }
        return pizza;
    }
}
